package com.zhanglijie.theory.produceandconsume;

import java.util.Queue;

/**
 * @author zhanglijie
 * @version 1.0
 * @since 1.1.0 2022/8/13 0013 19:50
 */
public class Test {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue(30);
        for (int i = 0; i < 10; i++) {
            new Producer("producer"+i,myQueue).start();
            new Consumer("consumer"+i,myQueue).start();
            new ClearThread("clearThread"+i,myQueue).start();
        }
    }
}
